package controllers.midas.grid;

import java.util.HashMap;
import java.util.Map;

import javax.inject.Inject;

import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;

import controllers.Secure;

import beans.grid.common.Grid;
import beans.grid.midas.CommandClassGrid;

import play.Logger;
import play.mvc.Controller;
import play.mvc.With;
import services.midas.MidasStubIntf;

@With(Secure.class)
public class Grids extends Controller{
	
	public static void gridScript(String clazz){
		Grid grid = Grid.getInstance(clazz);
		renderTemplate(Grid.GRID_SCRIPT_TEMPLATE_PATH, grid);
	}

    
    public static void showGrid(String clazz){
    	Grid grid = Grid.getInstance(clazz);
    	renderTemplate(Grid.GRID_COMMON_TEMPLATE_PATH, grid);
    }
}
